package com.esd.device.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.esd.device.entity.DeviceChannel;
import com.esd.device.entity.vo.DeltaChannelData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DeviceChannelMapper extends BaseMapper<DeviceChannel> {

    Long countByLine(@Param("lineId") Long lineId) ;

    Long countByLineAndChannelType(@Param("lineId") Long lineId , @Param("channelTypeName") String channelTypeName) ;

    List<DeltaChannelData> getLineData(@Param("lineId") Long lineId);
}
